Optimal. Leaf size=90 \[ \frac{A x \sqrt{b \cos (c+d x)}}{\sqrt{\cos (c+d x)}}+\frac{C x \sqrt{b \cos (c+d x)}}{2 \sqrt{\cos (c+d x)}}+\frac{C \sin (c+d x) \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0231953, antiderivative size = 90, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.086, Rules used = {17, 2635, 8} \[ \frac{A x \sqrt{b \cos (c+d x)}}{\sqrt{\cos (c+d x)}}+\frac{C x \sqrt{b \cos (c+d x)}}{2 \sqrt{\cos (c+d x)}}+\frac{C \sin (c+d x) \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 17
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\sqrt{b \cos (c+d x)} \left (A+C \cos ^2(c+d x)\right )}{\sqrt{\cos (c+d x)}} \, dx &=\frac{\sqrt{b \cos (c+d x)} \int \left (A+C \cos ^2(c+d x)\right ) \, dx}{\sqrt{\cos (c+d x)}}\\ &=\frac{A x \sqrt{b \cos (c+d x)}}{\sqrt{\cos (c+d x)}}+\frac{\left (C \sqrt{b \cos (c+d x)}\right ) \int \cos ^2(c+d x) \, dx}{\sqrt{\cos (c+d x)}}\\ &=\frac{A x \sqrt{b \cos (c+d x)}}{\sqrt{\cos (c+d x)}}+\frac{C \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac{\left (C \sqrt{b \cos (c+d x)}\right ) \int 1 \, dx}{2 \sqrt{\cos (c+d x)}}\\ &=\frac{A x \sqrt{b \cos (c+d x)}}{\sqrt{\cos (c+d x)}}+\frac{C x \sqrt{b \cos (c+d x)}}{2 \sqrt{\cos (c+d x)}}+\frac{C \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)} \sin (c+d x)}{2 d}\\ \end{align*}
Mathematica [A] time = 0.0734354, size = 52, normalized size = 0.58 \[ \frac{\sqrt{b \cos (c+d x)} (2 (2 A+C) (c+d x)+C \sin (2 (c+d x)))}{4 d \sqrt{\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.428, size = 54, normalized size = 0.6 \begin{align*}{\frac{C\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) +2\,A \left ( dx+c \right ) +C \left ( dx+c \right ) }{2\,d}\sqrt{b\cos \left ( dx+c \right ) }{\frac{1}{\sqrt{\cos \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.89713, size = 70, normalized size = 0.78 \begin{align*} \frac{{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} C \sqrt{b} + 8 \, A \sqrt{b} \arctan \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.71854, size = 459, normalized size = 5.1 \begin{align*} \left [\frac{2 \, \sqrt{b \cos \left (d x + c\right )} C \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) +{\left (2 \, A + C\right )} \sqrt{-b} \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt{b \cos \left (d x + c\right )} \sqrt{-b} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right )}{4 \, d}, \frac{\sqrt{b \cos \left (d x + c\right )} C \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) +{\left (2 \, A + C\right )} \sqrt{b} \arctan \left (\frac{\sqrt{b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt{b} \cos \left (d x + c\right )^{\frac{3}{2}}}\right )}{2 \, d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \cos \left (d x + c\right )^{2} + A\right )} \sqrt{b \cos \left (d x + c\right )}}{\sqrt{\cos \left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]